//
//  KLineDataList.h
//  Chart
//
//  Created by CaoJun on 13-6-17.
//
//

#ifndef __Chart__KLineDataList__
#define __Chart__KLineDataList__

#include "EnumDefinition.h"
#include "Metal.h"
#include "QuotationList.h"
#include "TimeKLineData.h"
#include "AVGDataList.h"

#include <vector>

namespace ytx
{
    class KLineDataList : public QuotationList<KLineData>{
    private:
        static KLineDataList * instance;
        TimeKLineData * dayK;
    public:
        KLineDataList(std::vector<Metal> & metalList, AVGDataList * avgDataList);
        
        void create(std::vector<Metal> & metalList, AVGDataList * avgDataList);
        
        virtual ~KLineDataList();

        static KLineDataList * getInstance(std::vector<Metal> & metalList, AVGDataList * avgDataList);

        static KLineDataList * getInstance();
    };
}

#endif /* defined(__Chart__KLineDataList__) */
